import request from '@/utils/request'

// 查询小鞠事迹列表
export function listDeeds(query) {
  return request({
    url: '/kiku/deeds/list',
    method: 'get',
    params: query
  })
}

// 查询小鞠事迹详细
export function getDeeds(id) {
  return request({
    url: '/kiku/deeds/' + id,
    method: 'get'
  })
}

// 新增小鞠事迹
export function addDeeds(data) {
  return request({
    url: '/kiku/deeds',
    method: 'post',
    data: data
  })
}

// 修改小鞠事迹
export function updateDeeds(data) {
  return request({
    url: '/kiku/deeds',
    method: 'put',
    data: data
  })
}

// 删除小鞠事迹
export function delDeeds(id) {
  return request({
    url: '/kiku/deeds/' + id,
    method: 'delete'
  })
}
